find openmp declared required only once

added subfolders after finding openmp
This commit is contained in:
Krishna Vedala 2020-05-31 10:49:26 -04:00
parent 2a9b520ab7
commit aa98625b45
6 changed files with 7 additions and 25 deletions

View File

@ -48,13 +48,6 @@ endif(MSVC)
find_library(MATH_LIBRARY m) find_library(MATH_LIBRARY m)
add_subdirectory(conversions)
add_subdirectory(misc)
add_subdirectory(project_euler)
add_subdirectory(sorting)
add_subdirectory(searching)
add_subdirectory(numerical_methods)
if(USE_OPENMP) if(USE_OPENMP)
find_package(OpenMP) find_package(OpenMP)
if (OpenMP_C_FOUND) if (OpenMP_C_FOUND)
@ -64,6 +57,13 @@ if(USE_OPENMP)
endif() endif()
endif() endif()
add_subdirectory(conversions)
add_subdirectory(misc)
add_subdirectory(project_euler)
add_subdirectory(sorting)
add_subdirectory(searching)
add_subdirectory(numerical_methods)
set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack) include(CPack)

View File

@ -1,6 +1,3 @@
if(USE_OPENMP)
find_package(OpenMP)
endif(USE_OPENMP)
# If necessary, use the RELATIVE flag, otherwise each source file may be listed # If necessary, use the RELATIVE flag, otherwise each source file may be listed
# with full pathname. RELATIVE may makes it easier to extract an executable name # with full pathname. RELATIVE may makes it easier to extract an executable name
# automatically. # automatically.

View File

@ -1,7 +1,3 @@
if(USE_OPENMP)
find_package(OpenMP)
endif()
# If necessary, use the RELATIVE flag, otherwise each source file may be listed # If necessary, use the RELATIVE flag, otherwise each source file may be listed
# with full pathname. RELATIVE may makes it easier to extract an executable name # with full pathname. RELATIVE may makes it easier to extract an executable name
# automatically. # automatically.

View File

@ -1,6 +1,3 @@
if(USE_OPENMP)
find_package(OpenMP)
endif(USE_OPENMP)
# If necessary, use the RELATIVE flag, otherwise each source file may be listed # If necessary, use the RELATIVE flag, otherwise each source file may be listed
# with full pathname. RELATIVE may makes it easier to extract an executable name # with full pathname. RELATIVE may makes it easier to extract an executable name
# automatically. # automatically.

View File

@ -1,7 +1,3 @@
if(USE_OPENMP)
find_package(OpenMP)
endif()
# If necessary, use the RELATIVE flag, otherwise each source file may be listed # If necessary, use the RELATIVE flag, otherwise each source file may be listed
# with full pathname. RELATIVE may makes it easier to extract an executable name # with full pathname. RELATIVE may makes it easier to extract an executable name
# automatically. # automatically.

View File

@ -1,7 +1,3 @@
if(USE_OPENMP)
find_package(OpenMP)
endif()
# If necessary, use the RELATIVE flag, otherwise each source file may be listed # If necessary, use the RELATIVE flag, otherwise each source file may be listed
# with full pathname. RELATIVE may makes it easier to extract an executable name # with full pathname. RELATIVE may makes it easier to extract an executable name
# automatically. # automatically.