X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/153b16c65aabb7e3e103a83e072460cdba64fad1..eb205f1bc5310adb939db1e08fe8bc1d02a37f8f:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 80601ab325..1850679437 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ if(NOT PERL_EXECUTABLE) message(FATAL_ERROR "-- SimGrid cannot be compiled without Perl installed -- sorry. Bailling out.") endif(NOT PERL_EXECUTABLE) -if(NOT WIN32) +if(UNIX) exec_program("${CMAKE_COMMAND} -E chdir \"${CMAKE_HOME_DIRECTORY}\" pwd -P" OUTPUT_VARIABLE TRUE_CMAKE_HOME_DIRECTORY) if(${TRUE_CMAKE_HOME_DIRECTORY} STREQUAL ${CMAKE_HOME_DIRECTORY}) else(${TRUE_CMAKE_HOME_DIRECTORY} STREQUAL ${CMAKE_HOME_DIRECTORY}) @@ -31,7 +31,7 @@ if(NOT WIN32) message(STATUS "Change link path '${CMAKE_BINARY_DIR}' to true path '${TRUE_CMAKE_BINARY_DIR}'") set(CMAKE_BINARY_DIR "${TRUE_CMAKE_BINARY_DIR}" CACHE TYPE INTERNAL FORCE) endif(${TRUE_CMAKE_BINARY_DIR} STREQUAL ${CMAKE_BINARY_DIR}) -endif(NOT WIN32) +endif(UNIX) ### SET THE LIBRARY EXTENSION if(APPLE) @@ -161,7 +161,6 @@ endif(WIN32) include_directories(${INCLUDES}) - ### Determine the assembly flavor that we need today include(CMakeDetermineSystem) set(PROCESSOR_${CMAKE_SYSTEM_PROCESSOR} 1)