Skip to content
Snippets Groups Projects
Commit c3f1cd80 authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

CMake might not be able to determine linker language when suffix is in variable

parent 8688c4d7
Branches
Tags
No related merge requests found
......@@ -83,6 +83,8 @@ function( waLBerla_generate_target_from_python )
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${codegenCfg}")
add_library(${PYGEN_NAME} ${generatedWithAbsolutePath})
# cmake might not be able to determine linker language since file extension is "hidden" in variable
set_target_properties(${PYGEN_NAME} PROPERTIES LINKER_LANGUAGE CXX)
target_include_directories(${PYGEN_NAME} PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/${codegenCfg})
endfunction()
#######################################################################################################################
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment