Permalink
Browse files

Use STATIC libraries to prevent them being shared

This can happen when user override definition of -DBUILD_SHARED_LIBS=ON.
Without this hard-enforce the libraries would be generated as shared
while never installed. Thus resulting in broken binaries.
  • Loading branch information...
scarabeusiv committed Sep 1, 2015
1 parent 5aa4ade commit 37a148f6e35523fd2bbbdbc37e6ed838684c6d90
Showing with 5 additions and 5 deletions.
  1. +1 −1 libmd5/CMakeLists.txt
  2. +1 −1 qtools/CMakeLists.txt
  3. +2 −2 src/CMakeLists.txt
  4. +1 −1 vhdlparser/CMakeLists.txt
@@ -1,3 +1,3 @@
add_library(md5
add_library(md5 STATIC
md5.c
)
@@ -52,6 +52,6 @@ qwaitcondition_win32.cpp
)
endif()
add_library(qtools
add_library(qtools STATIC
${qtools_src}
)
@@ -106,15 +106,15 @@ FLEX_TARGET(config config.l ${GENERATED_SRC}/config.cpp
BISON_TARGET(vhdlparser vhdlparser.y ${GENERATED_SRC}/vhdlparser.cpp COMPILE_FLAGS "-l -p vhdlscannerYY")
BISON_TARGET(constexp constexp.y ${GENERATED_SRC}/ce_parse.cpp COMPILE_FLAGS "-l -p constexpYY")
add_library(doxycfg
add_library(doxycfg STATIC
${GENERATED_SRC}/lang_cfg.h
${GENERATED_SRC}/config.cpp
${GENERATED_SRC}/configoptions.cpp
portable.cpp
portable_c.c
)
add_library(_doxygen
add_library(_doxygen STATIC
# custom generated files
${GENERATED_SRC}/lang_cfg.h
${GENERATED_SRC}/settings.h
@@ -1,5 +1,5 @@
include_directories(${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/qtools)
add_library(vhdlparser
add_library(vhdlparser STATIC
CharStream.cc
ParseException.cc
Token.cc

0 comments on commit 37a148f

Please sign in to comment.