@@ -38,8 +38,6 @@ For more information, please visit <http://www.openshot.org/>.
3838
3939################ ADD CMAKE MODULES ##################
4040set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR} /cmake/Modules" )
41- # Define install paths according to system conventions
42- include (GNUInstallDirs)
4341
4442################ PROJECT VERSION ####################
4543set (PROJECT_VERSION_FULL "0.2.3-dev1" )
@@ -63,34 +61,17 @@ Generating build files for OpenShot
6361 SO/API/ABI Version: ${PROJECT_SO_VERSION}
6462" )
6563
66- #### Work around a GCC < 9 bug with handling of _Pragma() in macros
67- #### See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55578
68- if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" ) AND
69- (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "9.0.0" ))
70- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-integrated-cpp" )
71- endif ()
72-
73- ########## Configure Version.h header ##############
74- configure_file (include /OpenShotVersion.h.in include /OpenShotVersion.h @ONLY)
75- # We'll want that installed later
76- install (FILES ${CMAKE_CURRENT_BINARY_DIR} /include /OpenShotVersion.h
77- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /libopenshot)
78-
79-
80- ############### Set up include paths #################
81- list (APPEND OPENSHOT_INCLUDE_DIRS
82- include
83- include /effects
84- include /Qt
85- ${CMAKE_CURRENT_BINARY_DIR} /include )
64+ # Define install paths according to system conventions
65+ # XXX: This must be AFTER THE PROJECT() COMMAND w/ languages enabled,
66+ # in order to properly configure CMAKE_INSTALL_LIBDIR path
67+ include (GNUInstallDirs)
8668
8769########## Configure Version.h header ##############
8870configure_file (include /OpenShotVersion.h.in include /OpenShotVersion.h @ONLY)
8971# We'll want that installed later
9072install (FILES ${CMAKE_CURRENT_BINARY_DIR} /include /OpenShotVersion.h
9173 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /libopenshot)
9274
93-
9475############### Set up include paths #################
9576list (APPEND OPENSHOT_INCLUDE_DIRS
9677 include
@@ -117,7 +98,4 @@ add_subdirectory(tests)
11798
11899################### DOCUMENTATION ###################
119100# Find Doxygen (used for documentation)
120- include (cmake/Modules/UseDoxygen.cmake)
121-
122- file (GLOB_RECURSE doc_files ${CMAKE_CURRENT_BINARY_DIR} /doc /html/*.*)
123- INSTALL (FILES ${doc_files} DESTINATION ${CMAKE_INSTALL_DOCDIR} )
101+ include (cmake/Modules/UseDoxygen.cmake)
0 commit comments