mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
remove BSD workarounds
if the linker cannot find system libraries then it's not a Katie build system problem Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
09653c0182
commit
e4e8ff4b26
2 changed files with 0 additions and 18 deletions
|
@ -31,21 +31,6 @@ set(CMAKE_UNITY_BUILD_BATCH_SIZE 300)
|
|||
# enable symbols visibility preset for all targets
|
||||
cmake_policy(SET CMP0063 NEW)
|
||||
|
||||
# LLVM linker does not have a default library search path, add some directories known to contain
|
||||
# system wide libraries. the headers search path is also incomplete
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "BSD")
|
||||
foreach(incdir /usr/X11R6/include /usr/X11R7/include /usr/pkg/include /usr/local/include /usr/include)
|
||||
if(EXISTS "${incdir}")
|
||||
include_directories(${incdir})
|
||||
endif()
|
||||
endforeach()
|
||||
foreach(linkdir /usr/X11R6/lib /usr/X11R7/lib /usr/pkg/lib /usr/local/lib /usr/lib /lib)
|
||||
if(EXISTS "${linkdir}")
|
||||
link_directories(${linkdir})
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
include(CheckCXXCompilerFlag)
|
||||
include(GNUInstallDirs)
|
||||
include(CheckIncludeFileCXX)
|
||||
|
|
|
@ -29,9 +29,6 @@ endfunction()
|
|||
|
||||
# a function to check for C function/definition, works for external functions
|
||||
function(KATIE_CHECK_DEFINED FORDEFINITION FROMHEADER)
|
||||
# see comment in top-level CMake file
|
||||
set(CMAKE_REQUIRED_INCLUDES /usr/X11R6/include /usr/X11R7/include /usr/pkg/include /usr/local/include /usr/include)
|
||||
set(CMAKE_REQUIRED_LINK_OPTIONS -L/usr/X11R6/lib -L/usr/X11R7/lib -L/usr/pkg/lib -L/usr/local/lib -L/usr/lib -L/lib)
|
||||
check_cxx_source_compiles(
|
||||
"
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue