[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kig] /: Make cmake find Boost Python (a missing compile option -fexceptions caused confusion to cma
From:       Maurizio Paolini <paolini () dmf ! unicatt ! it>
Date:       2016-03-21 18:33:14
Message-ID: E1ai4de-0003rO-7q () scm ! kde ! org
[Download RAW message or body]

Git commit 3c7c17c8abb0dc99c293bb45252126cc058344a2 by Maurizio Paolini.
Committed on 21/03/2016 at 18:30.
Pushed by paolini into branch 'master'.

Make cmake find Boost Python (a missing compile option -fexceptions caused confusion to cmake)

M  +2    -2    CMakeLists.txt
M  +1    -0    KigConfigureChecks.cmake

http://commits.kde.org/kig/3c7c17c8abb0dc99c293bb45252126cc058344a2

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ee115bc..313cf38 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,10 +41,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_C
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
 endif()
 
-find_package(BoostPython)
-
 include(KigConfigureChecks.cmake)
 
+find_package(BoostPython)
+
 add_subdirectory( doc )
 add_subdirectory( icons )
 add_subdirectory( kig )
diff --git a/KigConfigureChecks.cmake b/KigConfigureChecks.cmake
index e358f1f..c8d244e 100644
--- a/KigConfigureChecks.cmake
+++ b/KigConfigureChecks.cmake
@@ -1,3 +1,4 @@
+kde_enable_exceptions()
 include(CheckIncludeFiles)
 include(CheckFunctionExists)
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic