summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-01 08:18:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-01 08:18:41 +0100
commit882dae825773963ef44bfee61ca990fddbb94d02 (patch)
tree8cd745ef91b15ffc7b24cc167f54f2e36d72d4ee /cmake
parentd58e8a9a48b2b230ba4e65653abc9654c1f9c01c (diff)
cmake: fix NO-LINKER-SCRIPT
typo
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-macros.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/opentrack-macros.cmake b/cmake/opentrack-macros.cmake
index df19ddf0..e171a6fb 100644
--- a/cmake/opentrack-macros.cmake
+++ b/cmake/opentrack-macros.cmake
@@ -50,9 +50,10 @@ macro(opentrack_library n dir)
add_library(${n} ${link-mode} ${${n}-all})
set(link-mode)
if(NOT opentrack-foolib_NO-COMPAT)
- target_link_libraries(${n} opentrack-api ${MY_QT_LIBS} opentrack-compat)
+ target_link_libraries(${n} opentrack-api opentrack-compat)
endif()
- if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE AND NOT NO-LINKER-SCRIPT)
+ target_link_libraries(${n} ${MY_QT_LIBS})
+ if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE AND NOT opentrack-foolib_NO-LINKER-SCRIPT)
SET_TARGET_PROPERTIES(${n} PROPERTIES
LINK_FLAGS "${opentrack-foolib_LINK} ${opentrack-foolib_GNU-LINK} -Wl,--as-needed -Wl,--version-script=\"${CMAKE_SOURCE_DIR}/opentrack-compat/${version-script}-version-script.txt\""
COMPILE_FLAGS "${opentrack-foolib_COMPILE} ${opentrack-foolib_GNU-COMPILE} -fvisibility=hidden -fvisibility-inlines-hidden"