Skip to content

Commit 49fde97

Browse files
committed
Merge branch 'source_code_fmus' into source_code_fmus_examples
2 parents 23132ff + 98f52b2 commit 49fde97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmake/generate_fmu.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ function(generateFMU modelIdentifier)
178178

179179
set(VERSION_SOURCES ${VERSION_OBJECTS})
180180
file(MAKE_DIRECTORY "${modelOutputDir}/sources")
181+
file(COPY "${generatedSourcesDir}/fmu4cpp/lib_info.cpp" DESTINATION "${modelOutputDir}/sources/fmu4cpp/")
181182
file(COPY ${_fmu4cpp_root}/export/src/fmu4cpp DESTINATION "${modelOutputDir}/sources/")
183+
file(REMOVE_RECURSE "${modelOutputDir}/sources/fmu4cpp/fmi2") # remove fmi2 sources
182184
file(COPY ${_fmu4cpp_root}/export/include/fmu4cpp DESTINATION "${modelOutputDir}/sources/")
183185
foreach (s IN LISTS FMU_SOURCES VERSION_SOURCES)
184186
if (NOT "${s}" MATCHES "^\\$<") # skip generator expressions

0 commit comments

Comments
 (0)