mirror of https://github.com/TheAlgorithms/C
find openmp declared required only once
added subfolders after finding openmp
This commit is contained in:
parent
2a9b520ab7
commit
aa98625b45
|
@ -48,13 +48,6 @@ endif(MSVC)
|
|||
|
||||
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)
|
||||
find_package(OpenMP)
|
||||
if (OpenMP_C_FOUND)
|
||||
|
@ -64,6 +57,13 @@ if(USE_OPENMP)
|
|||
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_VERSION ${PROJECT_VERSION})
|
||||
include(CPack)
|
||||
|
|
|
@ -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
|
||||
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
||||
# automatically.
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
if(USE_OPENMP)
|
||||
find_package(OpenMP)
|
||||
endif()
|
||||
|
||||
# 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
|
||||
# automatically.
|
||||
|
|
|
@ -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
|
||||
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
||||
# automatically.
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
if(USE_OPENMP)
|
||||
find_package(OpenMP)
|
||||
endif()
|
||||
|
||||
# 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
|
||||
# automatically.
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
if(USE_OPENMP)
|
||||
find_package(OpenMP)
|
||||
endif()
|
||||
|
||||
# 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
|
||||
# automatically.
|
||||
|
|
Loading…
Reference in New Issue