CMake: Ensure that -fPIC is passed in tests.
CMake newer than 2.8.12 automatically adds the appropriate flag, but CI still runs 2.8.11. Change-Id: Ie61375f2feb54a92c9d8f0ed6ad5227a67343bc5 Reviewed-by: Stephen Kelly <ske@ableton.com>bb10
parent
1c32b71cd0
commit
558f69a18b
|
|
@ -8,6 +8,8 @@ find_package(Qt5Widgets)
|
|||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
|
||||
|
||||
add_executable(test_interface_exe WIN32 main.cpp mainwindow.cpp)
|
||||
|
||||
# No need to specify include directories, compile definitions, the PIC flag, or to
|
||||
|
|
|
|||
|
|
@ -12,5 +12,7 @@ add_executable(three three.cpp)
|
|||
|
||||
find_package(Qt5Core)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
|
||||
|
||||
qt5_use_modules(two Test)
|
||||
qt5_use_modules(three Gui Test)
|
||||
|
|
|
|||
Loading…
Reference in New Issue