[BW]: [Fix] Include directories shall be specified through target_include_directories not just include_directories call.

This commit is contained in:
vogel76 2014-03-08 03:20:09 +01:00
parent f5249dc2d6
commit 07ba2d6d95

View file

@ -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" )