File tree Expand file tree Collapse file tree
power_grid_model_c/power_grid_model_c Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 "binaryDir" : " ${sourceDir}/cpp_build/${presetName}" ,
1010 "installDir" : " ${sourceDir}/install/${presetName}" ,
1111 "cacheVariables" : {
12- "PGM_ENABLE_DEV_BUILD" : " ON"
12+ "PGM_ENABLE_DEV_BUILD" : " ON" ,
13+ "PGM_MSVC_REPRODUCIBLE_BUILD" : " OFF"
1314 },
1415 "environment" : {
1516 "PLATFORM_C_FLAGS" : " " ,
267268 },
268269 "cacheVariables" : {
269270 "PGM_ENABLE_DEV_BUILD" : " OFF" ,
271+ "PGM_MSVC_REPRODUCIBLE_BUILD" : " ON" ,
270272 "CMAKE_INTERPROCEDURAL_OPTIMIZATION" : " OFF" ,
271273 "CMAKE_SHARED_LINKER_FLAGS" : " /debug:None /Brepro /INCREMENTAL:NO /LTCG /NOCOFFGRPINFO"
272274 }
Original file line number Diff line number Diff line change 3131
3232target_link_libraries (power_grid_model_c PRIVATE power_grid_model )
3333
34- target_compile_definitions (power_grid_model_c PRIVATE PGM_VERSION= "${PGM_VERSION} " )
34+ target_compile_definitions (
35+ power_grid_model_c
36+ PRIVATE PGM_VERSION= "${PGM_VERSION} "
37+ )
3538
3639target_sources (
3740 power_grid_model_c
@@ -44,13 +47,18 @@ target_sources(
4447
4548set_target_properties (
4649 power_grid_model_c
47- PROPERTIES
48- VERSION ${PGM_VERSION}
49- SOVERSION ${PGM_VERSION_MAJOR}
50- INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
51- INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE
50+ PROPERTIES VERSION ${PGM_VERSION} SOVERSION ${PGM_VERSION_MAJOR}
5251)
5352
53+ if (NOT PGM_MSVC_REPRODUCIBLE_BUILD)
54+ set_target_properties (
55+ power_grid_model_c
56+ PROPERTIES
57+ INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
58+ INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE
59+ )
60+ endif ()
61+
5462install (
5563 TARGETS power_grid_model_c
5664 EXPORT power_grid_modelTargets
You can’t perform that action at this time.
0 commit comments