diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-11-17 10:46:03 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-11-17 10:46:03 +0100 |
commit | 23f22348c5281fff685c1fa89255e7e1e76266a4 (patch) | |
tree | fb05ad7fb39357ff8785068b3a1512101d685f41 /src/CMakeLists.txt | |
parent | 3d93df54d024f49895db6277e873dccd10b5baec (diff) | |
download | ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.gz ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.bz2 ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.xz ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.zip |
cmake build and gcc warnings
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0913528..95f7160 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -28,7 +28,7 @@ set(ufofilter_LIBS ${UFO_LIBRARIES} ${OpenCL_LIBRARIES}) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -Wall -Wextra -fPIC -Wno-unused-parameter -Wno-deprecated-declarations") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu18 -pedantic -Wall -Wextra -fPIC -Wno-unused-parameter -Wno-deprecated-declarations") add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES) #}}} @@ -42,8 +42,8 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR} ${OpenCL_INCLUDE_DIRS} ${UFO_INCLUDE_DIRS}) -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in - ${CMAKE_CURRENT_BINARY_DIR}/config.h) +#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in +# ${CMAKE_CURRENT_BINARY_DIR}/config.h) foreach(_src ${ufofilter_SRCS}) @@ -68,7 +68,7 @@ foreach(_src ${ufofilter_SRCS}) add_library(${target} SHARED ${_src} ${common_SRCS} ${${_aux_src}}) endif() - target_link_libraries(${target} ${ufofilter_LIBS} ${${_aux_libs}} ufoaux) + target_link_libraries(${target} ${ufofilter_LIBS} ${${_aux_libs}}) list(APPEND all_targets ${target}) |