From 07ba2d6d95db2fe437f37da7c9f931a9cf22191b Mon Sep 17 00:00:00 2001 From: vogel76 Date: Sat, 8 Mar 2014 03:20:09 +0100 Subject: [PATCH] [BW]: [Fix] Include directories shall be specified through target_include_directories not just include_directories call. --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df294ed..e770c0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,10 +57,6 @@ ELSE(WIN32) SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.so") - include_directories( ${Boost_INCLUDE_DIR} ) - include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/vendor/salsa20 ) - include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/include ) - include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/vendor/easylzma/src ) IF(NOT APPLE ) # then unix # Unix build: SET(SALSA_SRC vendor/salsa20/salsa20.s) @@ -174,7 +170,7 @@ IF(WIN32) # Needed to disable MSVC autolinking feature (#pragma comment) BOOST_ALL_NO_LIB ) - # Activate C++ exception handling inc. SEH to catch GPFs + # Activate C++ exception handling with SEH to allow catch GPFs target_compile_options(fc PUBLIC /EHa) ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall" )