File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ function(generateFMU modelIdentifier)
1919 # We will build per-version shared libraries from those object files.
2020 set (COMMON_OBJECTS "$<TARGET_OBJECTS :fmu4cpp_base >" )
2121 target_include_directories (${modelIdentifier} PUBLIC "${PROJECT_SOURCE_DIR} /export/include" )
22+ set_target_properties (${modelIdentifier} PROPERTIES POSITION_INDEPENDENT_CODE ON )
2223
2324 set (generatedSourcesDir "${CMAKE_BINARY_DIR} /generated" )
2425
@@ -82,7 +83,7 @@ function(generateFMU modelIdentifier)
8283
8384 set (fmuOutputDir "${CMAKE_BINARY_DIR} /${fmiVersion} " )
8485 set (modelOutputDir "${fmuOutputDir} /${modelIdentifier} " )
85- set (binaryOutputDir "${modelOutputDir} /binaries/${TARGET_PLATFORM} " )
86+ set (binaryOutputDir "$<1: $ {modelOutputDir} /binaries /${TARGET_PLATFORM} > " )
8687
8788
8889 add_library (${versionTarget} SHARED
You can’t perform that action at this time.
0 commit comments