[BW]: [Fix] Include directories shall be specified through target_include_directories not just include_directories call.
This commit is contained in:
parent
f5249dc2d6
commit
07ba2d6d95
1 changed files with 1 additions and 5 deletions
|
|
@ -57,10 +57,6 @@ ELSE(WIN32)
|
||||||
|
|
||||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.so")
|
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
|
IF(NOT APPLE ) # then unix
|
||||||
# Unix build:
|
# Unix build:
|
||||||
SET(SALSA_SRC vendor/salsa20/salsa20.s)
|
SET(SALSA_SRC vendor/salsa20/salsa20.s)
|
||||||
|
|
@ -174,7 +170,7 @@ IF(WIN32)
|
||||||
# Needed to disable MSVC autolinking feature (#pragma comment)
|
# Needed to disable MSVC autolinking feature (#pragma comment)
|
||||||
BOOST_ALL_NO_LIB
|
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)
|
target_compile_options(fc PUBLIC /EHa)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall" )
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall" )
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue