Add explicit dependency to sharp
This commit is contained in:
parent
54d23331f3
commit
222a539399
@ -36,7 +36,7 @@ ExternalProject_Add(sharp
|
|||||||
SOURCE_DIR ${SHARP_SOURCE}
|
SOURCE_DIR ${SHARP_SOURCE}
|
||||||
BUILD_IN_SOURCE 1
|
BUILD_IN_SOURCE 1
|
||||||
CONFIGURE_COMMAND ${SHARP_SOURCE}/configure --prefix=${DEP_BUILD}
|
CONFIGURE_COMMAND ${SHARP_SOURCE}/configure --prefix=${DEP_BUILD}
|
||||||
BUILD_COMMAND make
|
BUILD_COMMAND ${CMAKE_MAKE_PROGRAM}
|
||||||
INSTALL_COMMAND echo "No install"
|
INSTALL_COMMAND echo "No install"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -54,6 +54,7 @@ if (SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
|
|||||||
add_executable(test_healpix_calls test_healpix_calls.cpp)
|
add_executable(test_healpix_calls test_healpix_calls.cpp)
|
||||||
target_link_libraries(test_healpix_calls ${tolink} ${SHARP_LIBRARIES})
|
target_link_libraries(test_healpix_calls ${tolink} ${SHARP_LIBRARIES})
|
||||||
set_target_properties(test_healpix_calls PROPERTIES COMPILE_FLAGS ${OpenMP_CXX_FLAGS} LINK_FLAGS ${OpenMP_CXX_FLAGS})
|
set_target_properties(test_healpix_calls PROPERTIES COMPILE_FLAGS ${OpenMP_CXX_FLAGS} LINK_FLAGS ${OpenMP_CXX_FLAGS})
|
||||||
|
add_dependencies(test_healpix_calls sharp)
|
||||||
endif (SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
|
endif (SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
|
||||||
|
|
||||||
add_executable(test_cosmopower test_cosmopower.cpp)
|
add_executable(test_cosmopower test_cosmopower.cpp)
|
||||||
|
Loading…
Reference in New Issue
Block a user