Browse Source

force cmake to create update-entities script in binary directory: make sources read-only

Golubev Alexander 5 years ago
parent
commit
70ce443ca3
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      kdoctools/ConfigureChecks.cmake

+ 3
- 3
kdoctools/ConfigureChecks.cmake View File

@@ -8,11 +8,11 @@
8 8
 #
9 9
 #################################################
10 10
 
11
-configure_file( ${CMAKE_SOURCE_DIR}/kdoctools/update-entities.sh ${CMAKE_SOURCE_DIR}/kdoctools/update-entities IMMEDIATE @ONLY )
11
+configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/update-entities.sh ${CMAKE_CURRENT_BINARY_DIR}/update-entities IMMEDIATE @ONLY )
12 12
 
13
-set( UPDATE_SCRIPT "${CMAKE_SOURCE_DIR}/kdoctools/update-entities" )
13
+set( UPDATE_SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/update-entities" )
14 14
 set( TDEVERSION_FILE "${CMAKE_SOURCE_DIR}/tdecore/tdeversion.h" )
15
-set( ENTITIES_FILE "${CMAKE_SOURCE_DIR}/kdoctools/customization/entities/general.entities" )
15
+set( ENTITIES_FILE "${CMAKE_CURRENT_SOURCE_DIR}/customization/entities/general.entities" )
16 16
 
17 17
 if( NOT EXISTS ${UPDATE_SCRIPT} )
18 18
   tde_message_fatal( "${UPDATE_SCRIPT} not found!\n Check your sources." )

Loading…
Cancel
Save