Skip to content

Commit bd7334c

Browse files
committed
update
1 parent fcb99b4 commit bd7334c

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ option(FMU4CPP_BUILD_TESTS "Build internal tests" OFF)
1414

1515
set(CMAKE_CXX_STANDARD 17)
1616

17+
set(generatedSourcesDir "${CMAKE_BINARY_DIR}/generated")
18+
1719

1820
############modelIdentifier and export version###########
1921

2022
set(modelIdentifier identity) # <-- CHANGE ME
21-
set(fmi_version "fmi2" "fmi3") # fmi2 and fmi3 is supported
23+
set(fmi_version "fmi2") # fmi2 and fmi3 is supported
2224

2325
########################################################
2426

cmake/generate_fmu.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ function(generateFMU modelIdentifier)
2121
target_include_directories(${modelIdentifier} PUBLIC "${PROJECT_SOURCE_DIR}/export/include")
2222
set_target_properties(${modelIdentifier} PROPERTIES POSITION_INDEPENDENT_CODE ON)
2323

24-
set(generatedSourcesDir "${CMAKE_BINARY_DIR}/generated")
25-
2624
foreach (fmiVersion IN LISTS FMU_FMI_VERSIONS)
2725

2826
# versioned shared library target built from object libraries

export/src/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
set(generatedSourcesDir "${CMAKE_BINARY_DIR}/generated")
21

32
set(lib_info "${generatedSourcesDir}/fmu4cpp/lib_info.cpp")
43
configure_file(

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ generateFMU("${modelIdentifier}" FMI_VERSIONS ${fmi_version} RESOURCE_FOLDER "${
99

1010
# write the identifier to file so that the CI process knows what to package
1111
set(OUTPUT_FILE "${CMAKE_BINARY_DIR}/model.txt")
12-
file(WRITE ${OUTPUT_FILE} "${modelIdentifier}")
12+
file(WRITE ${OUTPUT_FILE} "${fmi_version}/${modelIdentifier}")

0 commit comments

Comments
 (0)