Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Options should be set up at the beginning, before being used ..
authordegomme <augustin.degomme@unibas.ch>
Tue, 28 Jun 2016 15:06:05 +0000 (17:06 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Tue, 28 Jun 2016 15:06:45 +0000 (17:06 +0200)
CMakeLists.txt

index c1093c6..e60e45a 100644 (file)
@@ -60,8 +60,12 @@ if(APPLE AND (CMAKE_C_COMPILER_VERSION VERSION_LESS "4.6"))
   set(HAVE_UCONTEXT_H 0)
 endif()
 
   set(HAVE_UCONTEXT_H 0)
 endif()
 
+
+### Setup Options
+include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Option.cmake)
+
 ### SMPI vs. Fortran
 ### SMPI vs. Fortran
-if (NOT DEFINED enable_smpi OR enable_smpi) 
+if ((NOT DEFINED enable_smpi) OR enable_smpi) 
   if(enable_fortran)
     include(FindGFortran)
   else()
   if(enable_fortran)
     include(FindGFortran)
   else()
@@ -173,8 +177,7 @@ endif()
 
 include_directories(${INCLUDES})
 
 
 include_directories(${INCLUDES})
 
-### Setup Options
-include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Option.cmake)
+
 
 ### Determine the assembly flavor that we need today
 set(HAVE_RAW_CONTEXTS 0)
 
 ### Determine the assembly flavor that we need today
 set(HAVE_RAW_CONTEXTS 0)