summaryrefslogtreecommitdiffstats
path: root/conf.d/config.cmake
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-07-20 22:50:49 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-07-20 22:50:49 +0200
commitee2067d0383ee2a45e9730402120310bde634ea5 (patch)
treef07cb22478d12fd0d0c8311c6b6386f6bcf32144 /conf.d/config.cmake
parent40df603f9f4153b4d8a962644938025244f34ddc (diff)
parent92f95384ce4b4a198b1fea93272201421f7b9a39 (diff)
Diffstat (limited to 'conf.d/config.cmake')
-rw-r--r--conf.d/config.cmake14
1 files changed, 3 insertions, 11 deletions
diff --git a/conf.d/config.cmake b/conf.d/config.cmake
index f6e6668..1f50917 100644
--- a/conf.d/config.cmake
+++ b/conf.d/config.cmake
@@ -56,19 +56,11 @@ set (gcc_minimal_version 4.9)
# PKG_CONFIG required packages
# -----------------------------
-set (PKG_REQUIRED_LIST
- json-c
- libsystemd
- afb-daemon
-)
+set (PKG_REQUIRED_LIST)
# Static constante definition
# -----------------------------
-#add_compile_options()
-
-# LANG Specific compile flags set for all build types
-set(CMAKE_C_FLAGS "" CACHE STRING "C compile flags")
-set(CMAKE_CXX_FLAGS "-std=c++11" CACHE STRING "C++ compile flags")
+add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-std=c++11>)
# Print a helper message when every thing is finished
# ----------------------------------------------------
@@ -76,7 +68,7 @@ set(CLOSING_MESSAGE "Test with: ./src/can-config-generator -m ../tests/basic.jso
# (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable]
# ---------------------------------------------------------------------
-set(CMAKE_INSTALL_PREFIX $ENV{HOME}/opt)
+# set(CMAKE_INSTALL_PREFIX $ENV{HOME}/opt)
set(CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}/lib64/pkgconfig ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
set(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib)