Made -no-undefined windows only (fixes OSX compilation)
This commit is contained in:
parent
3869b864d3
commit
74467b7be8
1 changed files with 4 additions and 1 deletions
|
@ -15,7 +15,10 @@ set(MODULE_DIR "${CMAKE_SOURCE_DIR}/.cmake/Modules")
|
|||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${MODULE_DIR})
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -g -std=gnu99")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-no-undefined")
|
||||
|
||||
if (WIN32)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-no-undefined")
|
||||
endif()
|
||||
|
||||
# Setup coveralls
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue