File tree Expand file tree Collapse file tree 5 files changed +4
-1180
lines changed
Expand file tree Collapse file tree 5 files changed +4
-1180
lines changed Original file line number Diff line number Diff line change 1-
2-
3- add_subdirectory (src )
1+ if (LIBOMP_OMPD_SUPPORT)
2+ add_subdirectory (src)
3+ endif ( )
Original file line number Diff line number Diff line change @@ -2,36 +2,16 @@ project (libompd)
22
33add_library (ompd SHARED TargetValue.cpp omp-debug.cpp)
44
5- add_dependencies (ompd ompd-header)
6-
75set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
86
97include_directories (
10- ${CMAKE_CURRENT_BINARY_DIR} /include
118 ${CMAKE_CURRENT_SOURCE_DIR}
129)
1310
14- file (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /include )
15-
16- ADD_CUSTOM_TARGET (
17- ompd-header ALL
18- DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /include /ompd.h ${CMAKE_CURRENT_BINARY_DIR} /include /ompd_typedefs.h
19- )
20-
21- add_custom_command (
22- OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /include /ompd.h ${CMAKE_CURRENT_BINARY_DIR} /include /ompd_typedefs.h
23- COMMAND ${BASH}
24- ARGS ${CMAKE_CURRENT_SOURCE_DIR} /split_def_typedef.sh
25- ${CMAKE_CURRENT_SOURCE_DIR} /ompd-template.h
26- ${CMAKE_CURRENT_BINARY_DIR} /include /ompd_typedefs.h
27- ${CMAKE_CURRENT_BINARY_DIR} /include /ompd.h
28- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /ompd-template.h
29- )
30-
3111INSTALL ( TARGETS ompd
3212 LIBRARY DESTINATION lib
3313 ARCHIVE DESTINATION lib/static
3414 RUNTIME DESTINATION bin )
3515
36- INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR} / include / ompd.h DESTINATION include )
16+ INSTALL (FILES ompd.h DESTINATION include )
3717
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ extern "C" {
3333#define STR (x ) STR_HELPER(x)
3434
3535#include " ompd.h"
36- #include " ompd_typedefs.h"
3736
3837/* *****************************************************************************
3938 * General helper functions
You can’t perform that action at this time.
0 commit comments