It was not tested at all, so I guess that it does not work anyway.
What's not tested does not exist and can be removed. If you need a
feature, write a test for it.
ensure the code quality, but as a user, that option will only
bring you issues.
- @li <b>enable_lib_static</b> (ON/OFF): enable this if you want to
- compile the static library (but you should consider enjoying
- this new century instead).
-
@li <b>enable_maintainer_mode</b> (ON/OFF): you only need to set
this option if you modify very specific parts of SimGrid itself
(the XML parsers and other related elements). Adds an extra
install(TARGETS simgrid
DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/)
-if(enable_lib_static AND NOT WIN32)
- install(TARGETS simgrid_static
- DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/)
-endif()
-
if(enable_java)
set(SIMGRID_JAR_TO_INSTALL "${SIMGRID_JAR}")
install(TARGETS simgrid-java
add_library(simgrid SHARED ${simgrid_sources})
set_target_properties(simgrid PROPERTIES VERSION ${libsimgrid_version})
-if(enable_lib_static)
- add_library(simgrid_static STATIC ${simgrid_sources})
-endif()
-
if(enable_ust)
ADD_DEPENDENCIES(simgrid simgrid_ust)
endif()
target_link_libraries(simgrid ${SIMGRID_DEP})
-# Pass dependencies to static libs
-##################################
-if(enable_lib_static)
- target_link_libraries(simgrid_static ${SIMGRID_DEP})
- add_dependencies(simgrid_static maintainer_files)
- set_target_properties(simgrid_static PROPERTIES OUTPUT_NAME simgrid)
-endif()
-
# Dependencies from maintainer mode
###################################
if(enable_maintainer_mode AND PYTHON_EXE)
mark_as_advanced(enable_print_message)
option(enable_model-checking "Turn this on to experiment with our prototype of model-checker (hinders the simulation's performance even if turned off at runtime)" off)
-option(enable_lib_static "" off)
option(enable_lib_in_jar "Whether the native libraries are bundled in a Java jar file" on)
option(enable_lto "Whether we should try to activate the LTO (link time optimisation)" on)
option(enable_jedule "Jedule output of SimDAG." off)
message(" Compile Smpi f77 ............: ${SMPI_FORTRAN}")
message(" Compile Smpi f90 ............: ${SMPI_FORTRAN}")
message(" Compile Boost.Context support: ${HAVE_BOOST_CONTEXT}")
-message(" Compile Static ..............: ${enable_lib_static}")
message("")
message(" Maintainer mode .............: ${enable_maintainer_mode}")
message(" Documentation................: ${enable_documentation}")
### Proceed with the tests
cmake -Denable_documentation=OFF -Denable_lua=OFF -Denable_tracing=ON \
- -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON -Denable_lib_static=OFF \
+ -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \
-Denable_latency_bound_tracking=OFF -Denable_jedule=OFF -Denable_mallocators=OFF \
-Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_model-checking=OFF \
-Denable_memcheck_xml=ON $WORKSPACE
make clean
cmake -Denable_documentation=OFF -Denable_lua=OFF -Denable_tracing=ON \
- -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON -Denable_lib_static=OFF \
+ -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \
-Denable_latency_bound_tracking=OFF -Denable_jedule=OFF -Denable_mallocators=OFF \
-Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_model-checking=OFF \
-Denable_memcheck=OFF -Denable_memcheck_xml=OFF -Denable_coverage=ON $WORKSPACE
-Denable_lua=$(onoff test "$build_mode" != "DynamicAnalysis") \
-Denable_mallocators=$(onoff test "$build_mode" != "DynamicAnalysis") \
-Denable_memcheck=$(onoff test "$build_mode" = "DynamicAnalysis") \
- -Denable_compile_warnings=ON -Denable_smpi=ON -Denable_lib_static=OFF \
+ -Denable_compile_warnings=ON -Denable_smpi=ON \
-Denable_latency_bound_tracking=OFF -Denable_jedule=OFF \
-Denable_tracing=ON -Denable_java=ON
make -j$NUMBER_OF_PROCESSORS VERBOSE=1