mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed BUILD_SHARED_LIBS related build sytem problems on linux. Now working with both on and off.
This commit is contained in:
@@ -6,7 +6,7 @@ if (MSVC)
|
|||||||
add_definitions(-DHKS_NT)
|
add_definitions(-DHKS_NT)
|
||||||
add_definitions(-DABQ_WIN86_64)
|
add_definitions(-DABQ_WIN86_64)
|
||||||
else()
|
else()
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -c -fPIC -w -Wno-deprecated")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -w -Wno-deprecated")
|
||||||
|
|
||||||
add_definitions(-DTYPENAME=typename)
|
add_definitions(-DTYPENAME=typename)
|
||||||
add_definitions(-D_LINUX_SOURCE)
|
add_definitions(-D_LINUX_SOURCE)
|
||||||
|
|||||||
@@ -84,8 +84,6 @@ if(MSVC)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
set(BUILD_SHARED_LIBS ON)
|
|
||||||
set(Boost_USE_STATIC_LIBS OFF)
|
|
||||||
find_package(Boost 1.44.0 COMPONENTS filesystem date_time system regex REQUIRED)
|
find_package(Boost 1.44.0 COMPONENTS filesystem date_time system regex REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user