diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2012-11-21 00:36:13 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2012-11-21 00:36:13 (GMT) |
commit | 2855a9ff7b423140237c9e988252fde0cbacd0a1 (patch) | |
tree | eb770f43a4d035f441087b6bc47db79753f6e7f8 | |
parent | 7c07dee4e6de014ed6b81ed2f1b428754802a0aa (diff) | |
download | uscxml-2855a9ff7b423140237c9e988252fde0cbacd0a1.zip uscxml-2855a9ff7b423140237c9e988252fde0cbacd0a1.tar.gz uscxml-2855a9ff7b423140237c9e988252fde0cbacd0a1.tar.bz2 |
Order of libraries matters with some gcc versions
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b2ba238..a7f5b6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -281,7 +281,7 @@ foreach( OUTPUT_CONFIG ${CMAKE_CONFIGURATION_TYPES} ) endforeach() ############################################################ -# Dependandent libraries +# Dependent libraries ############################################################ set(USCXML_LIBS) @@ -292,10 +292,6 @@ if (NOT WIN32) find_package(LibXml2 REQUIRED) include_directories(${LIBXML2_INCLUDE_DIR}) list (APPEND USCXML_LIBS ${LIBXML2_LIBRARIES}) - if (UNIX AND NOT APPLE) - list (APPEND USCXML_LIBS "pthread") - list (APPEND USCXML_LIBS "rt") - endif() elseif(WIN32) list (APPEND USCXML_LIBS "Ws2_32") list (APPEND USCXML_LIBS "Winmm") @@ -416,6 +412,12 @@ list (APPEND USCXML_FILES ${USCXML_INTERPRETER}) include_directories(src) +# order of libraries matters with some gcc versions?! +if (UNIX AND NOT APPLE) + list (APPEND USCXML_LIBS "pthread") + list (APPEND USCXML_LIBS "rt") +endif() + ############################################################ # Binaries and tests ############################################################ |