comparison Resources/CMake/Compiler.cmake @ 890:816dccaeb7cf

Support of kFreeBSD
author jodogne
date Mon, 16 Jun 2014 15:39:16 +0200
parents ec2c2411d4db
children 27d256e0b458
comparison
equal deleted inserted replaced
883:50106e80555a 890:816dccaeb7cf
35 include_directories(${CMAKE_SOURCE_DIR}/Resources/VisualStudio) 35 include_directories(${CMAKE_SOURCE_DIR}/Resources/VisualStudio)
36 link_libraries(netapi32) 36 link_libraries(netapi32)
37 endif() 37 endif()
38 38
39 39
40 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") 40 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR
41 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD")
41 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") 42 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
42 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --lsb-target-version=${LSB_TARGET_VERSION} -I${LSB_PATH}/include") 43 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --lsb-target-version=${LSB_TARGET_VERSION} -I${LSB_PATH}/include")
43 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --lsb-target-version=${LSB_TARGET_VERSION} -nostdinc++ -I${LSB_PATH}/include -I${LSB_PATH}/include/c++ -I${LSB_PATH}/include/c++/backward -fpermissive") 44 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --lsb-target-version=${LSB_TARGET_VERSION} -nostdinc++ -I${LSB_PATH}/include -I${LSB_PATH}/include/c++ -I${LSB_PATH}/include/c++/backward -fpermissive")
44 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --lsb-target-version=${LSB_TARGET_VERSION} -L${LSB_LIBPATH}") 45 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --lsb-target-version=${LSB_TARGET_VERSION} -L${LSB_LIBPATH}")
45 endif() 46 endif()