diff --git a/GeoModelDBManager/CMakeLists.txt b/GeoModelDBManager/CMakeLists.txt index f601567a1f00296e4698c137bd4dd407ad9b8ba7..e8a2d34c699cbfd8daff78a87263e50488a2f6f2 100644 --- a/GeoModelDBManager/CMakeLists.txt +++ b/GeoModelDBManager/CMakeLists.txt @@ -24,10 +24,6 @@ source_group( "src" FILES ${SOURCES} ) set_target_properties( GeoModelDBManager PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} ) -if( "${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR - "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo" ) - target_compile_definitions( GeoModelDBManager PUBLIC -DQT_NO_DEBUG_OUTPUT ) -endif() # Install the library. install( TARGETS GeoModelDBManager diff --git a/GeoModelRead/CMakeLists.txt b/GeoModelRead/CMakeLists.txt index 0bffad89bdbda9a065e8d83edef66a1c8ab9cf58..04aabc25bc0c21e11f6ecd9d963c8cc505f1c5ad 100644 --- a/GeoModelRead/CMakeLists.txt +++ b/GeoModelRead/CMakeLists.txt @@ -11,7 +11,7 @@ file( GLOB HEADERS GeoModelRead/*.h ) # Set up the library. add_library( GeoModelRead SHARED ${HEADERS} ${SOURCES} ) -target_link_libraries( GeoModelRead PUBLIC +target_link_libraries( GeoModelRead PUBLIC GeoModelCore::GeoModelKernel GeoModelDBManager TFPersistification ) target_include_directories( GeoModelRead PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> @@ -21,11 +21,6 @@ source_group( "src" FILES ${SOURCES} ) set_target_properties( GeoModelRead PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} ) -if( "${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR - "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo" ) - target_compile_definitions( GeoModelRead PUBLIC QT_NO_DEBUG_OUTPUT ) -endif() - # Install the library. install( TARGETS GeoModelRead diff --git a/GeoModelWrite/CMakeLists.txt b/GeoModelWrite/CMakeLists.txt index 0e0f17efe5197e465ea4a3c5d7846867be1d0533..de55ebf97b58657b59340a7d085338b9f25a1cbc 100644 --- a/GeoModelWrite/CMakeLists.txt +++ b/GeoModelWrite/CMakeLists.txt @@ -16,10 +16,6 @@ source_group( "src" FILES ${SOURCES} ) set_target_properties( GeoModelWrite PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} ) -if( "${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR - "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo" ) - target_compile_definitions( GeoModelWrite PUBLIC -DQT_NO_DEBUG_OUTPUT ) -endif() # Install the library. install( TARGETS GeoModelWrite diff --git a/TFPersistification/CMakeLists.txt b/TFPersistification/CMakeLists.txt index f8214a025b392957e4b63f7e929332798b85005c..2701c82683b5667ed297ca2e5a474d85a55c0c89 100644 --- a/TFPersistification/CMakeLists.txt +++ b/TFPersistification/CMakeLists.txt @@ -16,11 +16,6 @@ source_group( "src" FILES ${SOURCES} ) set_target_properties( TFPersistification PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} ) -if( "${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR - "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo" ) - target_compile_definitions( TFPersistification PUBLIC - -DQT_NO_DEBUG_OUTPUT ) -endif() # Install the library. install( TARGETS TFPersistification